package com.wq.wrongquestion.mapper.bio;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.wq.wrongquestion.entity.bio.BiologyEntity;

/**
 * 生物
 */
@Mapper
public interface BiologyMapper {
    @Select("select zjnm from m_biologyzj where zjid=#{zjID}")
    public String getBiologyZjnm(String zjID);
    

    @Select("select zjID from m_biologyzj")
    public List<String>  getBiologyZjID();
    /**
     * 获取所有章节
     * @return
     */

    public List<String>  getBiologyZj();

    public List<BiologyEntity> getBiology(BiologyEntity biologyEntity);


    public List<BiologyEntity> getBiologyByID(Integer id);
    /**
     * 插入错题 
     */

    public void insBiology(BiologyEntity biologyEntity);
    /**
     * 更新错题
     * @param BioEntity
     */
    public Integer updBiology(BiologyEntity biologyEntity);
    /**
     * 删除错题
     * 
     */
    public Integer delBiology(Integer id);
}
